package com.HZNU;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
//import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

//eureka和ribbon整合后可以直接调用provider。不用关心端口号了
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.HZNU"})
//@ComponentScan("com.HZNU")

//@RibbonClient(name = "HZNU-XIAODONG-SPRINGCLOUD-PROVIDER-DEPT",configuration = xiaodongRule.class)//微服务启动的时候加载自己的ribbon
public class FeignConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(FeignConsumerApplication.class,args);
    }
}
